<? if(!defined('IN_TIPASK')) exit('Access Denied'); ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd"><? $user=$this->user; $setting=$this->setting; ?><html xmlns="http://www.w3.org/1999/xhtml">

<head>
<title>Tipask's Control Panel</title>
<meta http-equiv="Content-Type" content="text/html; charset=<?=TIPASK_CHARSET?>">
<link media="all" type="text/css" href="css/common/admin/admincp.css" rel="stylesheet"/>

</head>

<body>

<div id="append">
</div>

<div class="container"><? if(isset($message)) { $type=isset($type)?$type:'correctmsg';  ?><div class="<?=$type?>"><p><?=$message?></p></div><? } ?><div class="mainbox nomargin">
<form action="index.php?admin_setting/base<?=$setting['seo_suffix']?>" method="post">
<table class="opt">
<tr>
<th colspan="2">网站名称:</th>
</tr>
<tr>
<td><input class="txt" value="<?=$setting['site_name']?>" name="site_name"></td>
<td>网站名称，将显示在页面Title处。</td>
</tr>
<tr>
<th colspan="2">网站备案号:</th>
</tr>
<tr>
<td><input class="txt" value="<?=$setting['site_icp']?>" name="site_icp"></td>
<td>格式类似“京ICP证030173号”，它将显示在页面底部，没有请留空。</td>
</tr>

<tr>
<th colspan="2">允许直接提问:</th>
</tr>
<tr>
<td>
<ul>
<li><input class="radio" type="radio" <? if(0==$setting['verify_question']) { ?>checked<? } ?> value="0" name="verify_question" >&nbsp;全部不需要审核</li>
<li><input class="radio" type="radio" <? if(1==$setting['verify_question']) { ?>checked<? } ?> value="1" name="verify_question" >&nbsp;提问需要审核</li>
<li><input class="radio" type="radio" <? if(2==$setting['verify_question']) { ?>checked<? } ?> value="2" name="verify_question" >&nbsp;回答问题需要审核</li>
<li><input class="radio" type="radio" <? if(3==$setting['verify_question']) { ?>checked<? } ?> value="3" name="verify_question" >&nbsp;全部需要审核</li>
</ul>
</td>
<td valign="top">若不需要审核问题，用户的提问就可以直接出现在首页或者列表页。</td>
</tr>

<tr>
<th colspan="2">默认模板:</th>
</tr>
<tr>
<td>
<select name="tpl_dir" >
<? if(is_array($tpllist)) { foreach($tpllist as $value) { ?>
<option value="<?=$value?>" <? if($value==$setting['tpl_dir']) { ?> selected <? } ?> ><?=$value?></option>
<? } } ?>
</select>
</td>
<td>设置网站的的默认模板。</td>
</tr>


<tr>
<th colspan="2">是否允许发站外URL:</th>
</tr>
<tr>
<td>
<ul>
<li><input  class="radio" type="radio" <? if(0==$setting['allow_outer']) { ?>checked<? } ?> value="0" name="allow_outer">&nbsp;禁止发表</li>
<li><input  class="radio" type="radio" <? if(1==$setting['allow_outer']) { ?>checked<? } ?> value="1" name="allow_outer">&nbsp;允许发表，但所提问题进入审核</li>
<li><input  class="radio" type="radio" <? if(2==$setting['allow_outer']) { ?>checked<? } ?> value="2" name="allow_outer">&nbsp;允许发表，但不解析</li>
<li><input  class="radio" type="radio" <? if(3==$setting['allow_outer']) { ?>checked<? } ?> value="3" name="allow_outer">&nbsp;允许发表，并正常解析</li>
</ul>
</td>
<td valign="top">是否允许内容包含URL，合理的设置可以有效的减少广告帖的量。</td>
</tr>

<tr>
<th colspan="2">网站统计代码:</th>
</tr>
<tr>
<td><textarea class="area" name="site_statcode"  style="height:100px;width:300px;"><?=$setting['site_statcode']?></textarea></td>
<td valign="top">页面底部可以显示第三方统计，如google统计代码或者51la统计等。</td>
</tr>
<tr>
<th colspan="2">列表页大小</th>
</tr>
<tr>
<td><input class="txt" value="<?=$setting['list_default']?>" name="list_default"></td>
<td>全局分页数据显示大小</td>
</tr>
<tr>
<th colspan="2">系统缓存时间（分钟）:</th>
</tr>
<tr>
<td><input class="txt" value="<?=$setting['index_life']?>" name="index_life"></td>
<td>如果设置为0，表示不缓存相关数据，包括首页缓存、积分排行榜等。</td>
</tr>
<tr>
<th colspan="2">问题过期时间（天）:</th>
</tr>
<tr>
<td><input class="txt" value="<?=$setting['overdue_days']?>" name="overdue_days" maxlength="4"></td>
<td>问题过期时间至少是3天，可根据网站活跃度自行调整。</td>
</tr>
<tr>
<th colspan="2">RSS更新时间（分钟）:</th>
</tr>
<tr>
<td><input class="txt" value="<?=$setting['rss_ttl']?>" name="rss_ttl"></td>
<td>时间越短则资料实时性就越高，但会加重服务器负担，通常可设置为 30～180 范围内的数值。</td>
</tr>
<tr>
<th colspan="2">通知方式:</th>
</tr>
<tr>
<td>
<input class="checkbox" type="checkbox" <? if($setting['notify_message']) { ?>checked<? } ?> value="1" name="notify_message">&nbsp;站内消息&nbsp;&nbsp;
<input class="checkbox" type="checkbox" <? if($setting['notify_mail']) { ?>checked<? } ?> value="1" name="notify_mail">&nbsp;邮件通知&nbsp;&nbsp;
</td>
<td>&nbsp;&nbsp;当问题状态改变，通知相关的人。</td>
</tr>
<tr>
<th colspan="2">启用验证码 :</th>
</tr>
<tr>
<td>
<input class="checkbox" type="checkbox" <? if($setting['code_register']) { ?>checked<? } ?> value="1" name="code_register">&nbsp;注册&nbsp;&nbsp;
<input class="checkbox" type="checkbox" <? if($setting['code_login']) { ?>checked<? } ?> value="1" name="code_login">&nbsp;登录&nbsp;&nbsp;
<input class="checkbox" type="checkbox" <? if($setting['code_ask']) { ?>checked<? } ?> value="1" name="code_ask">&nbsp;提问和回答&nbsp;&nbsp;
<input class="checkbox" type="checkbox" <? if($setting['code_message']) { ?>checked<? } ?> value="1" name="code_message">&nbsp;站内消息
</td>
<td>&nbsp;&nbsp;验证码可以避免恶意注册及恶意灌水，请选择需要打开验证码的操作。</td>
</tr>
</table>
<div class="opt">
<input class="btn" tabindex="3" type="submit" value=" 提 交 " name="submit"></div>
</form>
</div>
</div>

</body>

</html>
